//
//  PQ_Config.h
//  JiHe
//
//  Created by liuguochao on 16/3/24.
//  Copyright © 2016年 JiHe. All rights reserved.
//

#import <Foundation/Foundation.h>


/*
 全局 frame 相关
 */
#define ScreenW   [UIScreen mainScreen].bounds.size.width
#define ScreenH   [UIScreen mainScreen].bounds.size.height
#define TabBarHeight   20
#define NaviBarHeight 64

//颜色
#define RGBA(r,g,b,a)     [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:a]
#define RGB(r,g,b)        RGBA(r,g,b,1)
#define RDM_COLOR            [UIColor colorWithRed:arc4random_uniform(255)/255.0 green:arc4random_uniform(255)/255.0 blue:arc4random_uniform(255)/255.0 alpha:1]

//全局颜色
#define PQ_COLOR_CELL            RGB(233,233,233)
#define PQ_COLOR_Clear            RGB(240,240,240)

#define PQ_COLOR_MIDGray         RGB(102,102,103)
#define PQ_COLOR_YELLOW          RGB(162,136,77)
#define PQ_COLOR_BLACK           RGB(30,28,44)
#define PQ_COLOR_DarkGray        RGB(56,56,49)
#define PQ_COLOR_GRAY            RGB(153,153,153)
#define PQ_COLOR_LightGray       RGB(235,235,235)
#define PQ_COLOR_ORANGE          RGB(255,86,1)
#define PQ_COLOR_RED             RGB(219,115,114)
#define PQ_COLOR_CellLine        RGB(238,238,238)
#define PQ_COLOR_VerticalLine    RGB(221,221,221)
#define PQ_COLOR_SelectedRed     RGB(188,82,81)
#define PQ_COLOR_NavRed          RGB(248,87,93)
#define PQ_COLOR_BackGray        RGB(221,233,244)
#define PQ_COLOR_SimpleGary      RGB(185,180,173)

//字体
#define FONT(s)          [UIFont systemFontOfSize:s]

//全局字体
#define Font_BtnTitle           FONT(RATIO(28))
#define Font_GoodsTitle         FONT(RATIO(26))
#define Font_GoodsContentTitle  FONT(RATIO(24))
#define Font_GoodsContent       FONT(RATIO(22))

//间距
#define MARGIN              RATIO(24)
#define HEIGHT_UserInfoBG   RATIO(410)
#define HEIGHT_GoodsImg     RATIO(620)
#define HEIGHT_Segment      RATIO(90)

//按比例计算尺寸 设计稿是以750为基准
#define RATIO(size)      size*ScreenW/750

//图片加载
#define PQIMG(img)   [UIImage imageNamed:img]

//系统单利
#define UserDefaults         [NSUserDefaults standardUserDefaults]
#define NotificationCenter   [NSNotificationCenter defaultCenter]













